﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class SortObjectsProvinces : IComparer<Province>
{
	public int Compare(Province pro1, Province pro2)
    {
        return (pro1.ProvID < pro2.ProvID) ? 1 : ((pro1.ProvID > pro2.ProvID) ? -1 : 0);
    }

    public int Compare_ProvinceName_ASC(Province pro1, Province pro2)
    {
        return pro1.NameOfProvince.CompareTo(pro2.NameOfProvince);
    }
}